<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">

<html>
<head>
    <meta charset="utf-8">
    <title>代理商等级列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <meta http-equiv="Pragma"   content= "no-cache" /> 
    <meta http-equiv= "Cache-Control"   content= "no-cache" /> 
    <meta http-equiv= "Expires"   content= "0" />

    <link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/layui/style/admin.css" media="all" />
    <style>
        .default_profit{
            display: none;
        }
        .percentage_profit{
            display: none;
        }

    </style>
</head>
<body class="childrenBody">
<blockquote class="layui-elem-quote news_search">

    <input type="hidden"  id="levelNumber"     th:value="${profitConfigInfo.levelNumber}"/>
    <input type="hidden"  id="profitStrategy"  th:value="${profitConfigInfo.profitStrategy}"/>

    <div class="layui-inline">
        <a class="layui-btn levelAdd_btn" style="background-color:#5FB878">添加等级</a>
        <span style="color: red;" >最多添加<span th:text="${profitConfigInfo.levelNumber}"></span>个等级</span>
    </div>

</blockquote>
<table class="layui-hide" id="agency_level_table" lay-filter="agency_level_table"></table>

<div id="add_level_win" style="display: none;">
    <form id="add_level_form" class="layui-form" action="" lay-filter="add_level_form">
        <input type="hidden" name="id" />
        <div class="layui-form-item">
            <label class="layui-form-label">等级名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" required  lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">级别</label>
            <div class="layui-input-block">
                <select id="level" name="level" class="layui-input">
                    <option value="1" selected>1</option>
                    <option value="2" >2</option>
                    <option value="3" >3</option>
                </select>
            </div>
        </div>


        <div class="layui-form-item default_profit" >
            <label class="layui-form-label">结算价</label>
            <div class="layui-input-block">
                <input type="number" name="consumeProfit" required  lay-verify="required" placeholder="请输入结算价" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item percentage_profit" >
            <label class="layui-form-label">直推消费分润(百分比)</label>
            <div class="layui-input-block">
                <input type="number" name="directConsumeProfit" required  lay-verify="required" placeholder="直推消费分润" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item percentage_profit " >
            <label class="layui-form-label">间接消费分润(百分比)</label>
            <div class="layui-input-block">
                <input type="number" name="indirectConsumeProfit" required  lay-verify="required" placeholder="间接消费分润" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item percentage_profit" >
            <label class="layui-form-label">三级推荐消费分润(百分比)</label>
            <div class="layui-input-block">
                <input type="number" name="thirdConsumeProfit" required  lay-verify="required" placeholder="三级推荐消费分润" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item" >
            <label class="layui-form-label">直推代理商分佣(百分比)</label>
            <div class="layui-input-block">
                <input type="number" name="directRecAgencyProfit" required  lay-verify="required" placeholder="直推代理商分佣" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item percentage_profit" >
            <label class="layui-form-label">间推代理商分佣(百分比)</label>
            <div class="layui-input-block">
                <input type="number" name="indirectRecAgencyProfit" required  lay-verify="required" placeholder="间推代理商分佣" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">补贴比列</label>
            <div class="layui-input-block">
                <input type="number" name="subsidyProfit" required  lay-verify="required" placeholder="请输入补贴比列" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">等级价格</label>
            <div class="layui-input-block">
                <input type="number" name="price" required  lay-verify="required" placeholder="请输入等级价格" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="addlevelOk">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/MathUtils.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script src="/js/agency/levelList.js"></script>


</body>
</html>